package de.gwtprime.client.event;

import com.google.gwt.event.shared.GwtEvent;

import de.gwtprime.client.event.handler.QuestionOnTypeEventHandler;

public class QuestionOnTypeEvent extends GwtEvent<QuestionOnTypeEventHandler>{

	
	public static Type<QuestionOnTypeEventHandler> TYPE = new Type<QuestionOnTypeEventHandler>(); 
	
	private Long id;
	private String text;
	private String title;
	private String images;
	
	
	public QuestionOnTypeEvent(Long id, String title, String text, String images) {
		this.setId(id);
		this.setTitle(title);
		this.setText(text);
		this.setImages(images);
	}
	

	@Override
	protected void dispatch(QuestionOnTypeEventHandler handler) {
		handler.onType(this);
		
	}

	@Override
	public Type<QuestionOnTypeEventHandler> getAssociatedType() {
		return TYPE;
	}


	public String getText() {
		return text;
	}


	public void setText(String text) {
		this.text = text;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}


	public String getImages() {
		return images;
	}


	public void setImages(String images) {
		this.images = images;
	}



}
